Getter specialization for compile-time sized arrays, does bounds checking.
More...
#include <type_operators.hpp>
Public Member Functions |
| static_assert (dim > 0,"Dimension less than one passed to getter") |
| static_assert (std::is_floating_point< T >::value,"Non floating-point type used with standard getter") |
Static Public Member Functions |
template<size_t N> |
static T & | pull (T(&array)[N]) |
Detailed Description
template<class T, int dim>
struct get< T[], dim >
Getter specialization for compile-time sized arrays, does bounds checking.
Definition at line 43 of file type_operators.hpp.
Member Function Documentation
template<class T , int dim>
template<size_t N>
static T& get< T[], dim >::pull |
( |
T(&) |
array[N] | ) |
|
|
inlinestatic |
template<class T , int dim>
get< T[], dim >::static_assert |
( |
dim |
, |
|
|
0 |
, |
|
|
"Dimension less than one passed to getter" |
|
|
) |
| |
template<class T , int dim>
get< T[], dim >::static_assert |
( |
std::is_floating_point< T >::value |
, |
|
|
"Non floating-point type used with standard getter" |
|
|
) |
| |
The documentation for this struct was generated from the following file: